﻿using System;
using System.Collections.Generic;
using System.Text;
using SqlSugar;


namespace  WareHouse.Domain
{
    /// <summary>
    /// 用户表
    /// </summary>
    [SugarTable("Admin")]

        public class Admin : AuditInfo
        {
            /// <summary>
            /// 主键
            /// </summary>
            [SugarColumn(IsPrimaryKey = true)]
            public long AdminId { get; set; }
            /// <summary>        
            ///用户名
            /// </summary>
            public string UserName{ get; set; }
            /// <summary>        
            ///用户密码
            /// </summary>
            public string Password{ get; set; }









        /// <summary>
        /// 工号
        /// </summary>
        public int Job { get; set; }
        /// <summary>
        /// 真实姓名
        /// </summary>
        public string TureName { get; set; }
        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        public long Phone { get; set; }
        /// <summary>
        /// 固定手机
        /// </summary>
        public long Phones { get; set; }
        /// <summary>
        /// 部门Id外键
        /// </summary>
        public long DeparementId { get; set; }
        /// <summary>
        /// 角色Id外键
        /// </summary>
        public long RoleId { get; set; }
        /// <summary>
        ///备注
        /// </summary>
        public string Remark { get; set; }











        /// <summary>        
        ///末次登录时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? LastLoginTime{ get; set; }
        /// <summary>        
        ///末次登录IP
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public string? LastLoginIp { get; set; } 
      
        }
 }